Testing the greeter UI in nested has been broken for a long time
now, because the backend isn't ready yet when we try to push a
modal (via the screen shield).
As running nested is only relevant for development and testing,
working around the issue rather than fixing it properly seems
fine, so do just that and slightly delay startup when testing
the greeter UI.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2573>
await this._updateBackgrounds();
}
- this.emit('startup-prepared');
+ // Hack: Work around grab issue when testing greeter UI in nested
+ if (GLib.getenv('GDM_GREETER_TEST') === '1')
+ setTimeout(() => this.emit('startup-prepared'), 200);
+ else
+ this.emit('startup-prepared');
this._startupAnimation();
}